<?php

namespace App\Models\Bi;


use Illuminate\Database\Eloquent\Model;

class BiOrder extends Model
{

    /**
     * The table associated with the model.
     */
    protected $table = 'orders';

    protected $connection = "bi";

    public $timestamps = true;

//    protected $dateFormat = 'U';

    const CREATED_AT = 'created_at';

    const UPDATED_AT = 'updated_at';

    /**
     * The attributes that are mass assignable.
     */
    protected $fillable = [
        "config_id",
        "out_trade_no",
        "trade_no",
        "qwx_no",
        "other_no",
        "auth_code",
        "store_id",
        "out_store_id",
        "is_settlement_user",
        "user_id",
        "merchant_id",
        "store_name",
        "merchant_name",
        "ways_type",
        "rate",
        "ways_type_desc",
        "ways_source",
        "ways_source_desc",
        "pay_method",
        "company",
        "total_amount",
        "receipt_amount",
        "buyer_pay_amount",
        "pay_amount",
        "fee_amount",
        "shop_price",
        "shop_count",
        "settlement_amount",
        "buyer_id",
        "buyer_logon_id",
        "payment_method",
        "status",
        "remark",
        "pay_status",
        "pay_status_desc",
        "cost_rate",
        "coupon_type",
        "coupon_amount",
        "refund_amount",
        "mdiscount_amount",
        "discount_amount",
        "dk_jf",
        "dk_money",
        "member_money",
        "refund_no",
        "device_id",
        "pay_time",
        "notify_url",
        "created_at",
        "updated_at",
        "rata_money"
    ];
}